package com.gis_luq.lib.Draw;

import java.util.ArrayList;

import com.zondy.mapgis.core.geometry.Dot;

/**
 * 当一个新的点被添加/移动/删除时该实例被创建 用于记录编辑的状态信息，用于允许编辑的回退操作
 */
public class EditingStates
{

	ArrayList<Dot> dots = new ArrayList<Dot>();

	boolean midPointSelected = false;
	boolean vertexSelected = false;
	int insertingIndex;

	public EditingStates(ArrayList<Dot> dots, boolean midpointselected, boolean vertexselected, int insertingindex)
	{
		this.dots.addAll(dots);
		this.midPointSelected = midpointselected;
		this.vertexSelected = vertexselected;
		this.insertingIndex = insertingindex;
	}

}
